﻿<%@ Page Title="" Language="C#" MasterPageFile="~/adminaq/Adminpage.Master" AutoEventWireup="true"
    CodeBehind="AQRegisterMember.aspx.cs" Inherits="ToolwebAQ.adminaq.AQRegisterMember" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.11.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.11.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content-box">
        <div class="box-header clear">
            <h2>
                Đăng ký tài khoản & Quản lý tài khoản</h2>
        </div>
        <div class="box-body clear">
            <!-- Custom Forms -->
            <div id="forms">
                <%--<div class="form" style="float: left">
                    <table>
                        <tr>
                            <td style="width: 100px">
                                <asp:Literal ID="ltrNameAccount" runat="server">Tên tài khoản:</asp:Literal>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtNameAccount" runat="server" Width="250px" class="text fl">
                                </dx:ASPxTextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="chkNameAccount" runat="server" ErrorMessage="Vui lòng nhập !"
                                    ControlToValidate="txtNameAccount">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                                <asp:Literal ID="ltrPassword" runat="server">Mật khẩu:</asp:Literal>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtPassword" runat="server" Width="250px" class="text fl">
                                </dx:ASPxTextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="chkPassword" runat="server" ErrorMessage="Vui lòng nhập !"
                                    ControlToValidate="txtPassword">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                                <asp:Literal ID="ltrFullName" runat="server">Họ tên:</asp:Literal>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtFullName" runat="server" Width="250px" class="text fl">
                                </dx:ASPxTextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="chkFullName" runat="server" ErrorMessage="Vui lòng nhập !"
                                    ControlToValidate="txtFullName">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                                <asp:Literal ID="ltrEmail" runat="server">Email:</asp:Literal>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtEmail" runat="server" Width="250px" class="text fl">
                                </dx:ASPxTextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="chkEmail" runat="server" ErrorMessage="Vui lòng nhập !"
                                    ControlToValidate="txtEmail">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                                <asp:Literal ID="ltrAddress" runat="server">Địa chỉ:</asp:Literal>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtAddress" runat="server" Width="250px" class="text fl">
                                </dx:ASPxTextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="chkAddress" runat="server" ErrorMessage="Vui lòng nhập !"
                                    ControlToValidate="txtAddress">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                                <asp:Literal ID="ltrPhoneNumber" runat="server">Số điện thoại:</asp:Literal>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtPhoneNumber" runat="server" Width="250px" class="text fl">
                                </dx:ASPxTextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="chkPhoneNumber" runat="server" ErrorMessage="Vui lòng nhập !"
                                    ControlToValidate="txtPhoneNumber">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr class="form-field clear" style="width: 100px">
                            <td>
                                <asp:Literal ID="ltrRole" runat="server">Quyền:</asp:Literal>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxComboBox ID="cmbRole" runat="server" EnableCallbackMode="true" CallbackPageSize="10"
                                    Width="250px" IncrementalFilteringMode="Contains" DropDownStyle="DropDown">
                                    <ClientSideEvents BeginCallback="function(s, e) { OnBeginCallback(); }" EndCallback="function(s, e) { OnEndCallback(); } " />
                                </dx:ASPxComboBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="chkRole" runat="server" ErrorMessage="Vui lòng nhập !"
                                    ControlToValidate="cmbRole">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    </table>
                </div>--%>
                <div class="form">
                    <dx:ASPxGridView ID="gvAccount" KeyFieldName="Idaccount" runat="server" ClientInstanceName="gvAccount"
                        Width="100%">
                        <Columns>
                            <dx:GridViewDataTextColumn FieldName="" Caption="STT" Width="20px" VisibleIndex="0"
                                ReadOnly="True" />
                            <dx:GridViewDataTextColumn FieldName="Accountname" Caption="TÊN TÀI KHOẢN" VisibleIndex="1" />
                            <dx:GridViewDataTextColumn FieldName="Fullname" Caption="HỌ TÊN" VisibleIndex="2" />
                            <dx:GridViewDataTextColumn FieldName="Email" Caption="EMAIL" VisibleIndex="3" />
                            <dx:GridViewDataTextColumn FieldName="Rolename" Caption="QUYỀN" VisibleIndex="4"
                                Settings-AllowSort="False" />
                            <dx:GridViewDataTextColumn FieldName="Isused" Caption="TÌNH TRẠNG" Settings-AllowSort="False"
                                VisibleIndex="5" />
                            <dx:GridViewCommandColumn Caption="CHỨC NĂNG" Width="70px" VisibleIndex="6">
                                <EditButton Visible="true" />
                                <NewButton Visible="true" />
                                <%--<DeleteButton Visible="true" />--%>
                            </dx:GridViewCommandColumn>
                            <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="7">
                                <HeaderTemplate>
                                    <dx:ASPxCheckBox ID="SelectAllCheckBox" runat="server" ToolTip="Chọn tất cả" ClientSideEvents-CheckedChanged="function(s, e) { gvAccount.SelectAllRowsOnPage(s.GetChecked()); }" />
                                </HeaderTemplate>
                                <HeaderStyle HorizontalAlign="Center" />
                            </dx:GridViewCommandColumn>
                        </Columns>
                        <SettingsPager PageSize="10" />
                        <Settings ShowGroupPanel="True" />
                    </dx:ASPxGridView>
                </div>
            </div>
            <div class="notification note-attention" id="tb" visible="false" runat="server">
                <a href="#" class="close" title="Close notification"><span>close</span></a> <span
                    class="icon"></span>
                <p>
                    <strong>Thông báo:</strong><asp:Label ID="lblNotice" runat="server" Text=""></asp:Label></p>
            </div>
            <asp:ValidationSummary ID="validError" runat="server" ShowMessageBox="True" ShowSummary="False" />
        </div>
    </div>
</asp:Content>
